package Accessors;

import Callbacks.AbstractCallback;
import Models.RawGoodsInvReport;
import Presenter.RawGoodsInvReportPresenter;
import android.app.ProgressDialog;
import android.content.Context;

@SuppressWarnings("rawtypes")
public class RawGoodsInvReportAccessor extends AbstractAccessor<RawGoodsInvReport,RawGoodsInvReportPresenter,AbstractCallback> {
	private final String NAME = "rawgoodsinventoryreport";
	private final String DIALOG = "Raw Goods Inventory(s)";
	
	private final static RawGoodsInvReportPresenter presenter = new RawGoodsInvReportPresenter();
	
	//Modal dialog variable.
	ProgressDialog modalDialog = null;
	
	public RawGoodsInvReportAccessor(AbstractCallback callback){
		super(presenter, callback);
	}
	
	public void getInventory(final Context context){
		String dialog = "Loading " + DIALOG + "...";
		String rfString = NAME + "/getRawGoodsInventoryReport";
		super.getItem(context, dialog, rfString);
	}
	
	public void doItemUpdate(final RawGoodsInvReport item, final Context context){
		String dialog = "Updating " + DIALOG + "...";
		String rfString = NAME;
		super.doItemUpdate(item, context, dialog, rfString);
	}
}
